* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  /*background: url('/static/images/game_bg.jpg') no-repeat center;*/
  background-size: cover;
  z-index: -1;
}
@media screen and (max-width: 768px) {
  .bg-container {
      background-size: cover;
  }
}
#game-container {
  width: 100%;
  height: 100%;
  position: relative;
}
#game-frame {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  /*display: none;*/
}
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5dfdf;
  font-size: 16px;
  z-index: 100;
}
.float-ball {
  position: fixed;
  right: -25px;
  top: 25%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.3s ease;
}

.float-ball span {
  width: 100%;
  height: 100%;
  display: block;
  background: url('/static/images/float.png') no-repeat;
  background-size:cover;
}

.float-ball.active {
  right: 0;
}
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.login-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}
.login-logo {
  text-align: center;
  margin-bottom: 20px;
}
.login-logo img {
  width: 260px;
  height: auto;
}
.form-group {
  margin-bottom: 15px;
  position: relative;
  background: #f5f7fa;
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: none;
}
.form-group .prefix-icon {
  color: #999;
  margin-right: 8px;
  font-size: 16px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.form-group .suffix-btn {
  padding: 6px 8px;
  background: transparent;
  border: none;
  color: #ff7f32;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}
.form-group .suffix-btn:disabled {
  color: #999;
  cursor: not-allowed;
}
.form-group input {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  min-width: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
}
.form-group input::placeholder {
  color: #999;
  font-size: 14px;
}
.form-group input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #f5f7fa inset;
  box-shadow: 0 0 0px 1000px #f5f7fa inset;
}
.captcha-group {
  display: flex;
  align-items: center;
}
.captcha-group input {
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}
.captcha-group .captcha-img {
  width: 100px; /* 固定验证码图片宽度 */
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  cursor: pointer;
  object-fit: cover;
}
.country-code {
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  padding-right: 8px;
  border-right: 1px solid #eee;
  margin-right: 8px;
  flex-shrink: 0;
}
.country-code:after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  margin-right: 5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #666;
}
.btn-login {
  width: 100%;
  padding: 12px;
  background: #ff7f32;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}
.login-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 14px;
}
.login-actions a {
  color: #666;
  text-decoration: none;
}
.other-login {
  text-align: center;
  margin-top: 30px;
  position: relative;
}
.other-login::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #eee;
}
.other-login::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #eee;
}
.other-login-text {
  display: inline-block;
  padding: 0 10px;
  color: #999;
  background: #fff;
  position: relative;
  z-index: 1;
}
.email-login {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.email-login-btn {
  width: 40px;
  height: 40px;
  background: #ff7f32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}
/* 注册弹窗样式 */
.register-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.register-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}
.register-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
.register-title {
  font-size: 18px;
  font-weight: bold;
  color: #666;
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  z-index: 1;
}
.close-btn {
  cursor: pointer;
  font-size: 20px;
  color: #999;
  padding: 5px;
  position: relative;
  z-index: 2;
}
.close-btn:hover {
  color: #666;
}
.btn-register {
  width: 100%;
  padding: 12px;
  background: #ff7f32;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}
/* 重置密码弹窗样式 */
.reset-password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.reset-password-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}
.reset-password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}
.reset-password-title {
  font-size: 18px;
  font-weight: bold;
  color: #666;
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  z-index: 1;
}
.btn-reset-password {
  width: 100%;
  padding: 12px;
  background: #ff7f32;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}
/* 添加下拉框样式 */
.account-select, .phone-select {
  position: relative;
  width: 100%;
  background: #f5f7fa;
  border-radius: 5px;
  cursor: pointer;
}
.account-select-input, .phone-select-input {
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.account-options, .phone-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}
.account-option, .phone-option {
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
}
.account-option:hover, .phone-option:hover {
  background: #f5f7fa;
}
.account-option.selected, .phone-option.selected {
  background: #fff4ef;
  color: #ff7f32;
}

/* 账户中心样式 */
.account-center {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.account-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #ff7f32;
    color: #fff;
}

.account-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-logo {
    height: 24px;
    width: auto;
}

.account-header .close-btn {
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.account-info-box {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ff7f32;
    color: #fff;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 2px solid rgba(255,255,255,0.3);
}

.user-avatar i {
    font-size: 24px;
}

.user-info {
    flex: 1;
}

.info-row {
    margin-bottom: 5px;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.account-actions {
    padding: 20px;
}

.action-group {
    margin-bottom: 20px;
}

.action-group:last-child {
    margin-bottom: 0;
}

.action-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    padding-left: 12px;
}

.action-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #ff7f32;
    border-radius: 2px;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff4ef;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.action-item:hover {
    background: #ffe4d6;
}

.action-item i {
    font-size: 20px;
    margin-right: 10px;
}

.action-item .icon-pwd {
    color: #ff7f32;
}

.action-item .icon-exit {
    color: #ff7f32;
}

.action-item .fa-qq {
    color: #ff7f32;
}

.copy-text {
    position: absolute;
    right: 15px;
    color: #ff7f32;
    font-size: 14px;
}

/* 支付弹窗样式 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.payment-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 320px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.payment-title {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    z-index: 1;
}

.payment-amount {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    background: #f5f7fa;
    border-radius: 5px;
}

.amount-label {
    color: #666;
    font-size: 14px;
}

.amount-value {
    color: #ff7f32;
    font-size: 24px;
    font-weight: bold;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff4ef;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-method:hover {
    background: #ffe4d6;
}

.payment-method i:first-child {
    font-size: 24px;
    margin-right: 10px;
    color: #ff7f32;
}

.payment-method span {
    flex: 1;
    color: #333;
}

.payment-method i:last-child {
    color: #ff7f32;
    font-size: 20px;
    display: none;
}

.payment-method.selected i:last-child {
    display: block;
}

.btn-payment {
    width: 100%;
    padding: 12px;
    background: #ff7f32;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-payment:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.popup-container {
  position: fixed;
  top: 0;
  left: 5%;
  width: 90%;
  /*height: 95%;*/
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  margin-top: 16%;
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.header {
  background: #ff7f32;
  padding: 14px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  position: relative;
  box-shadow: 0 4px 12px rgba(74, 107, 255, 0.3);
}

.header:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #ff7f32;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background-color: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.close-btn:hover {
  background-color: rgba(255,255,255,0.5);
  transform: rotate(90deg) scale(1.1);
}

.content {
  padding: 0px 24px 24px 24px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.intro-text {
  background-color: #f5f8ff;
  padding: 14px;
  border-radius: 10px;
  border-left: 4px solid #ff7f32;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.section {
  background-color: white;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  border: 1px solid #e8f0ff;
}

.section-title {
  font-weight: bold;
  /*margin-bottom: 14px;*/
  display: flex;
  align-items: center;
  font-size: 17px;
  color: #333;
}

.section-title:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  background: #ff7f32;
  margin-right: 12px;
  border-radius: 3px;
}

.section-desc {
  color: #777;
  margin-bottom: 16px;
  font-size: 14px;
}

.button {
  display: block;
  width: 100%;
  padding: 14px;
  background: #ff7f32;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  /*margin: 14px 0;*/
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(74, 107, 255, 0.25);
}

.button:hover {
  background: #ff7f32;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(74, 107, 255, 0.35);
}

.button:active {
  transform: translateY(0);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.option-button {
  padding: 12px;
  background-color: #ff7f32;
  border: 1px solid #ff7f32;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  font-weight: 500;
}

.option-button:hover {
  background: #ff7f32;
  border-color: #ff7f32;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(74, 107, 255, 0.1);
}

.option-button:after {
  content: "→";
  margin-left: 6px;
  color: #fff;
  font-weight: bold;
}

.divider {
  margin: 18px 0;
}

.footer {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
  padding: 10px;
}

.list-container {
}

.list-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.item-header {
  display: flex;
  justify-content: space-between;
}

.item-index {
  color: #666;
  font-size: 14px;
}

.item-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  flex-grow: 1;
  padding: 0 10px;
}

.item-time {
  color: #999;
  font-size: 12px;
  margin-bottom: 10px;
}

.detail-btn {
  background-color: #ff7f32;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  align-self: flex-end;
}

.divider {
  height: 1px;
  background-color: #eee;
  margin: 10px 0;
}

/* 添加横屏提示样式 */
.landscape-notice {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  color: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.landscape-notice i {
  font-size: 60px;
  margin-bottom: 20px;
  color: #ff7f32;
}

.landscape-notice h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.landscape-notice p {
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 80%;
}

/* 横屏适配样式 - 最终版 */
@media screen and (orientation: landscape) {
  .login-content {
    max-width: 380px; /* 更紧凑的宽度 */
    display: flex;
    flex-direction: column; /* 改为垂直布局 */
    padding: 20px;
  }

  .login-logo {
    margin-bottom: 20px; /* logo在顶部 */
    margin-right: 0;
    flex: none; /* 取消flex属性 */
    text-align: center;
  }

  .login-logo img {
    width: auto;
    max-width: 120px; /* 适当大小的logo */
    height: auto;
  }

  #accountLoginForm, #phoneLoginForm {
    width: 100%;
  }

  /* 隐藏"其他登录方式" */
  .other-login {
    display: none;
  }

  /* 手机号登录文字链接样式 */
  .phone-login-text {
    display: inline-block;
    margin: 0 10px;
    color: #ff7f32;
    cursor: pointer;
    font-size: 13px;
  }

  /* 在移动设备横屏时显示提示 */
  @media (max-height: 500px) {
    .landscape-notice {
      display: flex;
    }
  }
}

/* 竖屏样式调整 */
@media screen and (orientation: portrait) {
  .landscape-notice {
    display: none;
  }

  .phone-login-text {
    display: none; /* 竖屏时隐藏文字链接 */
  }
}